
Component({
  data: {
    
    list: [
      {
        url: "../MainPage/MainPage",
        icon: "home-o",
        iconActive: "home",
        active: "mainpage",
        text: "首页"
      }, {
        url: "../Games/Games",
        icon: "fire-o",
        iconActive: "fire",
        active: "boardgame",
        text: "桌游"
      }
    ]
  },
  attached(e) {
  },
  methods: {
    showPopup(e) {
        this.setData({show:true})
    },
    onClose(e) {
        this.setData({show:false})
    },
    gotoCreateArticle(e) {
        wx.navigateTo({
          url: '../CreateArticle/CreateArticle',
        })
    },
    gotoCreateActivity(e) {
        wx.navigateTo({
          url: '../CreateActivity/CreateActivity',
        })
    },
    gotoAI(e) {
        wx.navigateTo({
          url: '../ai/ai',
        })
    }
  }
})